home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / battleinmegaville.swf / scripts / frame_2236 / DoAction.as
Text File  |  2006-09-05  |  2KB  |  77 lines

  1. if(sprite[0]._state == STATE_IDLE)
  2. {
  3.    sprite[0].swapDepths(sprite[1]);
  4. }
  5. if(hpbarframe0.chemx._currentframe != 3 && hpbarframe1.chemx2._currentframe != 3)
  6. {
  7.    gotoAndPlay(2005);
  8. }
  9. else if(_gameMode == MODE_STORY && hpbarframe0.chemx._currentframe == 3)
  10. {
  11.    _storylevel++;
  12.    removeAllClips();
  13.    if(_storylevel >= NUMOF_OPPONENTS || _storylevel >= NUMOF_OPPONENTS - 1 && _difficulty <= 5)
  14.    {
  15.       if(!_zimsurvivalunlock && !_continue)
  16.       {
  17.          gotoAndPlay(4386);
  18.       }
  19.       else if(_difficulty >= 9 && _zimsurvivalunlock && !_shiraunlock)
  20.       {
  21.          gotoAndPlay(4380);
  22.       }
  23.       else
  24.       {
  25.          gotoAndPlay(2676);
  26.       }
  27.    }
  28.    else
  29.    {
  30.       gotoAndPlay(1895);
  31.    }
  32. }
  33. else if(_gameMode == MODE_SURVIVAL && hpbarframe0.chemx._currentframe == 3)
  34. {
  35.    _survivalhp = sprite[0]._hp + Math.round((MAX_HP - MIN_HP) * ((MAX_DIFFICULTY * 2 - _difficulty) / (MAX_DIFFICULTY * 2)));
  36.    if(_survivalhp > MAX_HP)
  37.    {
  38.       _survivalhp = MAX_HP;
  39.    }
  40.    removeAllClips();
  41.    _winstreak++;
  42.    if(_difficulty < MAX_DIFFICULTY * 2)
  43.    {
  44.       _difficulty++;
  45.    }
  46.    gotoAndPlay(1895);
  47. }
  48. else
  49. {
  50.    removeAllClips();
  51.    if(_gameMode == MODE_STORY)
  52.    {
  53.       gotoAndPlay(2256);
  54.    }
  55.    else if(_gameMode == MODE_SURVIVAL)
  56.    {
  57.       if(_survival2 && _winstreak >= 2 && !_zimunlock)
  58.       {
  59.          gotoAndPlay(4383);
  60.       }
  61.       else if(_winstreak >= 10 && !_shirasurvivalunlock)
  62.       {
  63.          gotoAndPlay(4389);
  64.       }
  65.       else
  66.       {
  67.          gotoAndPlay(2256);
  68.       }
  69.    }
  70.    else
  71.    {
  72.       _continue = true;
  73.       gotoAndPlay(1882);
  74.    }
  75. }
  76. _root.attachMovie("fader","fader",Z_FADER);
  77.